<template>
  <div class="team-box">
    <!--搜索-->
    <div class="search-body">
      <div class="input-box">
        <img src="../../assets/images/search-ico.png" alt=""/>
        <router-link to="">
          <input type="text" placeholder="请输入编号、昵称或手机号码"/>
        </router-link>
      </div>
    </div>
    <div class="session">
      <ul class="tabs-box">
        <li v-for="(item,index) in tabs" @click="isTab=index"><span :class="{on:isTab==index}">{{item}}</span></li>
      </ul>
      <div class="content">
        <!--<div class="vip-no">-->
          <!--<p>预约编号：566824568754<span>进行中</span></p>-->
        <!--</div>-->
        <div class="vip-list">
          <div class="vip-no">
            <p>预约编号：566824568754<span>进行中</span></p>
          </div>
          <div class="fl-flex">
            <div class="fl-left">
              <img src="../../assets/images/p-1.png" alt="">
            </div>
            <div class="fl-right">
              <p>最好的侍酒师</p>
              <div class="discribe">地址：
                <span>福建省厦门市思明区厦禾路100号英拉酒666包间</span>
              </div>
              <div class="summary">
                <span class="position">时间：<span class="gender">2018-08-23 10:30:25</span></span>
                <br />
                <span>人数：<span class="age">3人</span></span>
              </div>
            </div>
          </div>
          <div class="cancel_zc">
            <input type="button" value="取消预约" class="cancel">
            <input type="button" value="再次预约">
          </div>
        </div>
        <div class="vip-list">
          <div class="vip-no">
            <p>预约编号：566824568754<span>进行中</span></p>
          </div>
          <div class="fl-flex">
            <div class="fl-left">
              <img src="../../assets/images/p-1.png" alt="">
            </div>
            <div class="fl-right">
              <p>最好的侍酒师</p>
              <div class="discribe">地址：
                <span>福建省厦门市思明区厦禾路100号英拉酒666包间</span>
              </div>
              <div class="summary">
                <span class="position">时间：<span class="gender">2018-08-23 10:30:25</span></span>
                <br />
                <span>人数：<span class="age">3人</span></span>
              </div>
            </div>
          </div>
          <div class="cancel_zc">
            <input type="button" value="取消预约" class="cancel">
            <input type="button" value="再次预约">
          </div>
        </div>
        <div class="vip-list">
          <div class="vip-no">
            <p>预约编号：566824568754<span>进行中</span></p>
          </div>
          <div class="fl-flex">
            <div class="fl-left">
              <img src="../../assets/images/p-1.png" alt="">
            </div>
            <div class="fl-right">
              <p>最好的侍酒师</p>
              <div class="discribe">地址：
                <span>福建省厦门市思明区厦禾路100号英拉酒666包间</span>
              </div>
              <div class="summary">
                <span class="position">时间：<span class="gender">2018-08-23 10:30:25</span></span>
                <br />
                <span>人数：<span class="age">3人</span></span>
              </div>
            </div>
          </div>
          <div class="cancel_zc">
            <input type="button" value="取消预约" class="cancel">
            <input type="button" value="再次预约">
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "my-reservation",
      data() {
        return {
          tabs: ["进行中", "已完成"],//tab标签切换
          isTab: 0,
        }
      },
      created: function () {
        document.title = "我的预约";
      }
    }
</script>

<style lang="less" scoped>
  .team-box {
    /*position: absolute;*/
    /*top: 50px;*/
    /*left: 0;*/
    width: 100%;
    min-height: 100%;
    background: #f3f3f3;
    font-size: 1rem;
    margin-top: 50px;
    .session {
      width: 100%;
      margin-bottom: 10px;
      .p-title {
        width: 100%;
        margin: 20px auto 10px;
        font-size: 0.95rem;
        padding: 0 2.5%;
        span {
          padding-left: 5px;
          border-left: 4px solid #d44242;
        }
      }
      .content {
        width: 100%;
        padding-top: 58px;
        .vip-no {
          height: 3rem;
          line-height: 3rem;
          padding: 0 2.5%;
          background: #fff;
          p {
            width: 100%;
            height: 100%;
            border-bottom: 1px solid #eee;
            font-size: 0.9rem;
            span{
              display: inline-block;
              float: right;
            }
          }
        }
        .vip-list {
          width: 100%;
          background: #FFF;
          margin-bottom: 10px;
          padding-bottom: 10px;
        }
        .fl-flex {
          width: 100%;
          padding: 3% 2.5% 2%;
          background: #fff;
          display: flex;
          border-bottom: 1px solid #ebebeb;
          margin-bottom: 10px;
          .fl-left {
            img {
              width: 100px;
              height: 100px;
              margin-top: 4px;
            }
          }
          .fl-right {
            margin-left: 10px;
            overflow: hidden;
            p {
              height: 1.5rem;
            }
            .discribe {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
              font-size: 0.8rem;
              color: #aaa;
              margin-bottom: 5px;
            }
            .summary {
              height: 30px;
              font-size: 0.8rem;
               .age,.gender {
                color: #FB3F40;
              }
            }
          }
        }
        /*取消预约-再次预约*/
        .cancel_zc{
          width: 100%;
          text-align: right;
          padding-right: 10px;
          input{
            width: 30%;
            height: 30px;
            background: #FFF;
            outline: none;
            border: 1px solid #FB3F40;
            color: #FB3F40;
            font-size: 0.9rem;
            border-radius: 4px;
          }
          .cancel{
            border: 1px solid #bebebe;
            color: #bebebe;
          }
        }
      }
      .tabs-box {
        width: 100%;
        height: 2.6rem;
        line-height: 2.6rem;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: flex;
        margin-bottom: 10px;
        position: fixed;
        li {
          flex: 1;
          text-align: center;
          span {
            font-size: 0.9rem;
            color: #666;
            display: inline-block;
            height: 100%;
            box-sizing: border-box;
          }
          .on {
            font-weight: bold;
            color: #d44242;
            border-bottom: 2px solid #d44242;
          }
        }
      }

    }
    /*搜索*/
    .search-body {
      position: fixed;
      top: 0px;
      left: 0;
      width: 100%;
      height: 50px;
      line-height: 50px;
      background: #D44242;
      text-align: center;
      padding-top: 10px;
      .location, .input-box, .filter-box {
        display: inline-block;
        height: 30px;
        line-height: 30px;
        color: #fff;
        vertical-align: top;
      }
      .input-box {
        width: 85%;
        line-height:26px;
        padding: 0 4px;
        border-radius: 4px;
        background-color: #fff;
        text-align: center;
        img {
          width: 5%;
          vertical-align: sub;
        }
        input {
          width: 76%;
          height: 30px;
          border: none;
          outline: none;
          vertical-align: top;
        }
      }
    }
  }
</style>
